#ifndef TINX_ARENA_H
#define TINX_ARENA_H

#include <tinx/list.h>

#define DESC_COUNT 7

typedef struct arena_descriptor_t
{
    size_t size;
    list_t free_list;
} arena_descriptor_t;

typedef struct arena_t
{
    arena_descriptor_t *desc;
    bool page;
    int count;
} arena_t;

typedef struct block_t
{
    list_node_t node;
} block_t;

void *kmalloc(size_t size);
void kfree(void *addr);

#endif